package com.hqj.controller;

import com.hqj.entity.User;
import com.hqj.service.UserServiceImpl;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/uc")
public class UserController {

    @Resource(name = "userServiceImpl")
    private UserServiceImpl usi;

    @RequestMapping("/find")
    public List<User> find(){
        return usi.find();
    }

}
